﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.CodeDom.Compiler;

namespace RobotBattle2.Scripting {
	public class ExpressionStatement : Statement {
		public ExpressionStatement() { }
		public ExpressionStatement(Expression expression) {
			this.Expression = expression;
		}

		public Expression Expression { get; set; }

		public override void Dump(IndentedTextWriter writer) {
			Expression.Dump(writer);
			writer.WriteLine(';');
		}

		public override StatementType Type { get { return StatementType.Expression; } }
	}
}
